package com.hktf.moedokilock.activitycontrolimpl;

import android.content.Context;
import android.content.Intent;

import com.hktf.moedokilock.activity.MainActivity;
import com.hktf.uilib.app.activitycontrol.impl.DefaultActivityControlImpl;

/**
 * ActivityControl具体实现
 *
 * @author Administrator
 */

public class ActivityControlImpl extends DefaultActivityControlImpl {

    private static ActivityControlImpl instance;

    public static ActivityControlImpl getInstance() {
        if (instance == null) {
            return new ActivityControlImpl();
        }
        return instance;
    }

    private ActivityControlImpl() {

    }

    @Override
    public void startATSMainActivity(Context context, Intent i) {

        i.setClass(context, MainActivity.class);
        context.startActivity(i);
    }

    /**
     * LoginActivity
     */
    @Override
    public void startLoginActivity(Context context,Intent i) {
//        i.setClass(context, LoginActivity.class);
//        context.startActivity(i);
//        MyRouter.gotoLogin((BaseActivity) context,i);
    }


}
